package com.app.twth.ui.returnstrailer;


import android.view.View;

import com.app.twth.BR;
import com.app.twth.base.BaseActivity;
import com.app.twth.databinding.ActivityReturnsTrailerBinding;

/**
 * @describe :
 */
public class ReturnsTrailerActivity extends BaseActivity<ActivityReturnsTrailerBinding, ReturnsTrailerViewModel> {
    private String TAG = getClass().getSimpleName();

    @Override
    protected void initListener() {
        viewModel.errorResultCode.observe(this, code -> {
            showHint((String) code);
        });
        viewModel.isLoading.observe(this, b -> {
            if (b.isShow()) {
                showProgressDialog(b.getMsg());
            } else {
                dismissProgressDialog();
            }
        });
    }

    protected String setTitle() {
        return "Trailer";
    }

    @Override
    protected int initViewModelId() {
        return BR.viewModel;
    }

    @Override
    protected void initData() {
    }

    @Override
    protected void onResume() {
        // TODO Auto-generated method stub
        super.onResume();
        bottomLayoutBinding.tvHint.setText("");
    }

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
    }

    public void onViewClicked(View view) {
        switch (view.getId()) {
        }
    }

    @Override
    public void getScanninCode() {
        super.getScanninCode();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
